﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Rose.Models.RequestModel>" %>

<%@ Import Namespace="Rose.Helper" %>
 <% Rose.Helper.CheckRelationHelpModel helper = new Rose.Helper.CheckRelationHelpModel();
      
         
     string selfId = new CheckHelpModel().CheckCurrentUserId();
     var item = Model;
  
     bool isFriend=helper.IsFriendRelation(selfId,item.UserId);
     string gender = item.Gender;
       %>




<div class="request">

<div class="bigimagepart"><img class="friendimage" data="<%=item.UserId %>"

<%if(isFriend){ %>
onclick="FriendAlbum(this);"
<%} else {%>
onclick="PublicAlbum(this);"
<%} %>

 src="<%=item.ImagePath %>" /></div>

<div class="requestcontent">





<p class="fr"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=item.UserId}) %>"><span><%=item.RequestName %></span></a>
邀请你成为好友
<a href="<%=Url.Action("ShowFriendList","Relation") %>"><span>好友</span></a></p>






<p><a class="laber">学校信息:</a><a class="info"><%=item.University %></a></p>
<p><a class="laber">家庭地址:</a><a class="info"><%=item.Address %></a></p>
<p><a class="laber">入学时间:</a><a class="info"><%=item.SchoolYear %></a></p>
<p><a class="laber">兴趣爱好:</a><a class="info tb">羽毛球-漫画-火影忍者-海贼王</a></p>
</div>






  <p class="response">



<a class="acceptfriend" data="<%=item.RequestId %>" onclick="AcceptFriend(this)">接受</a>
<a class="rejectfriend" data="<%=item.RequestId %>" onclick="RejectFriend(this);">拒绝</a>



</p>
</div><!--end of request--> 

